package com.ktjy.example.example20To25.dao.impl;

import com.ktjy.example.example20To25.dao.PetDao;
import com.ktjy.example.example20To25.entity.Pet;
import org.springframework.stereotype.Repository;

//@Component("petDao")
@Repository("PetDaoMySQL")
public class PetDaoMySqlImpl implements PetDao {
    @Override
    public int insertPet(Pet pet) {
        System.out.printf("将宠物" + pet.getName() + "插入到MySql数据库");
        return 1;
    }
}
